package team.knowers.firm.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import team.knowers.firm.dao.entity.FlightDO;
import team.knowers.firm.dto.req.AddFlightReqDTO;
import team.knowers.firm.dto.req.PageFlightInfoReqDTO;
import team.knowers.firm.dto.resp.FlightInfoRespDTO;

import java.util.List;

public interface FlightService extends IService<FlightDO> {
    Boolean addFlight(AddFlightReqDTO req);
    IPage<FlightInfoRespDTO> getAllFlightInfo(PageFlightInfoReqDTO req);
    FlightInfoRespDTO getFlightInfo(Integer id);
    Boolean updateFlight(FlightDO req);
    Boolean deleteFlight(Integer id);
    List<FlightInfoRespDTO> getFlightInfoByFlightNo(String flightNo);
}
